// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.


using System;
using System.Runtime.InteropServices;
using System.Runtime.CompilerServices;
using System.Text;
using Silk.NET.Core;
using Silk.NET.Core.Native;
using Silk.NET.Core.Attributes;
using Silk.NET.Core.Contexts;
using Silk.NET.Core.Loader;

#pragma warning disable 1591

namespace Silk.NET.Direct3D12
{
    [NativeName("Name", "D3D12_VIDEO_ENCODER_PICTURE_RESOLUTION_RATIO_DESC")]
    public unsafe partial struct VideoEncoderPictureResolutionRatioDesc
    {
        public VideoEncoderPictureResolutionRatioDesc
        (
            uint? widthRatio = null,
            uint? heightRatio = null
        ) : this()
        {
            if (widthRatio is not null)
            {
                WidthRatio = widthRatio.Value;
            }

            if (heightRatio is not null)
            {
                HeightRatio = heightRatio.Value;
            }
        }


        [NativeName("Type", "UINT")]
        [NativeName("Type.Name", "UINT")]
        [NativeName("Name", "WidthRatio")]
        public uint WidthRatio;

        [NativeName("Type", "UINT")]
        [NativeName("Type.Name", "UINT")]
        [NativeName("Name", "HeightRatio")]
        public uint HeightRatio;
    }
}
